<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>SHOYO</title>
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <link rel="stylesheet" href="../static/css/common.css">
    <script src="../static/js/rem.js"></script>
    <link rel="stylesheet" href="../static/css/answer.css">
    <link rel="stylesheet" href="../static/css/animate.css">
</head>
<body>
	<div id="content">
		<div class="topimg"><img src="../static/images/img_06.png" alt=""></div>
		<div class="centercon">
			<div>
				<div class="bacimg">
					<img src="../static/images/3.gif" alt="">
				</div>
				<p class="nametips animated  zoomIn">测试结束了，您的测试结果是:</p>
				<div class="inpname">
					<span style="display:inline-block" class="animated delay-1s bounceIn"></span>
				</div>
			</div>
		</div>
		<div class="bottomfooter">
			<img src="../static/images/img_31.png" alt="">
		</div>
	</div>
	<script src="https://cdn.bootcss.com/zepto/1.0rc1/zepto.min.js"></script>
	<script>
		function geturl(name) { //获取页面之间的传值
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
			var r = window.location.search.substr(1).match(reg);
			if(r != null) return unescape(r[2]);
			return null;
		};
		//真实的年龄
		var zage = geturl("zage");
		//测试出来的年龄
		var jage = geturl("jage");
		if(jage-zage>=10){
			jage-=2;
		}
		$(".inpname span").text(jage+'岁')
		$('.btnagin').on('touchstart',function(){

		});
		$('body').on('touchend',function(){
			window.location.href="again.html"
		});
		setTimeout(function(){
			window.location.href="again.html"
		},8000)
	</script>
</body>
</html>